package com.ea.eadp.nexus.test.pageDefinition.console;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;

public class LoginPage extends ConsoleBasePage {
	
	public LoginPage(WebDriver driver) {
		super(driver, LoginPage.class, "emailOrOrigin");
	}
	
	public void fillLoginInfo(String email, String password) {
		this.sendInput(email);
		this.sendControllerKey(Keys.DOWN);

		this.sendInput(driver.findElement(By.id("password")), password);
		this.sendControllerKey(Keys.DOWN);
	}
}
